From 548524dd09b3017c69216961972ef83c1977536c Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 26 Mar 2025 13:21:30 +0100 Subject: [PATCH] gui/macOS: Avoid leaking objc objects added to arrays and dicts The array/dict will retain them Signed-off-by: Claudio Cambra --- src/gui/macOS/fileproviderxpc_mac_utils.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/macOS/fileproviderxpc_mac_utils.mm b/src/gui/macOS/fileproviderxpc_mac_utils.mm index eb385d1c4..fe33492ad 100644 --- a/src/gui/macOS/fileproviderxpc_mac_utils.mm +++ b/src/gui/macOS/fileproviderxpc_mac_utils.mm @@ -78,7 +78,6 @@ NSArray *> *get } else if (service == nil) { qCWarning(lcFileProviderXPCUtils) << "Service is nil"; } else { - [service retain]; [fpServices addObject:@{service.name: service}]; } dispatch_group_leave(group); @@ -191,7 +190,6 @@ NSArray *connectToFileProviderServices(NSArray